<template>
  <!-- 个人信息 -->
        <div class="datas">
            <div class="data">
              <span class="key">车牌号码 ：</span><span v-init-tooltips='featureList' class="value link">{{base.cph}}</span>
              <mt-button size="small" type="primary" class="tag-z color">{{base.clbs}}</mt-button>
            </div>
            <div class="data">
              <span class="key">车辆所有人 ：</span><span class="value">{{base.clsyr}}</span>
            </div>
            <div class="data">
              <span class="half">
              <span class="key">发动机号 ：</span><span class="value">{{base.fdjh}}</span>
              </span>
              <span>
              <span class="key">车架号 ：</span><span class="value">{{base.cjh}}</span>
              </span>
            </div>
            <div class="data">
              <span class="half">

              <span class="key">车辆品牌 ：</span><span class="value">{{base.clpp}}</span>
              </span>
              <span>
              <span class="key">车身颜色 ：</span><span class="value">{{base.csys}}</span>
              </span>
            </div>
            <div class="data">
              <span class="key">身份证号 ：</span><span class="value link">{{base.sfzh}}</span>
            </div>
            <div class="data">
              <span class="key">详细地址 ：</span><span class="value">{{base.xxdz}}</span>
            </div>
            <div class="data">
              <span class="key">联系电话 ：</span><span class="value">{{base.lxdh}}</span>
            </div>  
        </div>
</template>

<script>
  export default {
    name: 'carbase',
    components: {
    },
    props: {
      base: {
        type: Object,
        default() {
          return {}
        }
      }
    },
    mixins: [],
    computed: {},
    data() {
      return {
        featureList: [
          {
            text: '档案',
            fn: this.jumpTo
          }
        ]
      }
    },
    methods: {
      /**
       * 根据案件id 查找案件信息并且调到案件档案页面
       * @param id
       */
      jumpTo(id) {
        // 调到案件档案页面
        this.$router.push('/car?cph=' + id)
      }
    },
    filters: {
    },
    mounted() {
    },
    created() {
    }
  }
</script>

<style scoped>
.datas {
  background-color: #FFFFFF;
  padding-top: .5rem; 
}
.data {
  margin-top: .5rem;
}
.key {
  margin-left: 1.5rem; 
  color: #B4B4B4;
  font-size: 1rem;
}
.keys {
  margin-left: 4rem;
  font-size: 1rem;
}
.value {
  color: #000;
  font-size: 1rem;
}
.link {
  color: #5077aa;
}
.tag-z {
  margin-left: .8rem;
  font-size: .8rem;
  padding: 0 8px;
  height: 24px;
  border-radius: 5px;
  background-color: #FF6600;
}
.half {
  width:50%;
  display:inline-block;
}
</style>

